<!doctype html>
<html>
<head>
    <meta charset=utf-8>
    <meta name="robots" content="noindex,nofollow">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="<?=Web_Path?>packs/layui/css/layui.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/font.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/style.css">
    <script src="<?=Web_Path?>packs/js/jquery.min.js"></script>
    <script src="<?=Web_Path?>packs/layui/layui.js"></script>
    <script src="<?=Web_Path?>packs/admin/js/cscms.js"></script>
</head>
<body id="index_setting">
    <span class="layui-breadcrumb" >
        <a ><cite><i class="fa fa-map-marker"></i><?=L('tpl_01')?></cite></a>
        <a href="javascript:;"><?=L('tpl_02')?></a>
        <a href="<?=site_url('mail')?>"><?=L('tpl_03')?></a>
    </span>
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class="layui-this"><a href="<?=site_url('mail')?>"><?=L('tpl_04')?></a></li>
            <li><a href="<?=site_url('mail/add')?>"><?=L('tpl_05')?></a></li>
        </ul>
        <div class="layui-tab-content">
            <form class="layui-form layui-form-pane" action="<?=site_url('mail/save')?>" method="post">
                <fieldset class="layui-elem-field" style="margin-top: 15px;">
                    <legend><?=L('tpl_ms_01')?></legend>
                    <div class="layui-field-box">
                        <div class="layui-form-item">
                            <label class="layui-form-label"><?=L('tpl_ms_02')?></label>
                            <div class="layui-input-block" onclick="cscms.show_hide('fsmail','CS_Smtpmode')">
                                <input name="CS_Smtpmode" title="<?=L('tpl_ms_03')?>" type="radio" value="1" <?php if(CS_Smtpmode==1) echo ' checked="checked"';?>>
                                <input name="CS_Smtpmode" title="<?=L('tpl_ms_04')?>" type="radio" value="0" <?php if(CS_Smtpmode==0) echo ' checked="checked"';?>>
                            </div>
                        </div>
                        <div class="fsmail fsmail1" <?php if(CS_Smtpmode==0) echo 'style="display:none";';?>>
                            <div class="layui-form-item">
                                <label class="layui-form-label"><?=L('tpl_ms_05')?></label>
                                <div class="layui-input-inline">
                                    <input type="text" name="CS_Smtphost" value="<?=CS_Smtphost?>" placeholder="<?=L('tpl_ms_06')?>" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label"><?=L('tpl_ms_07')?></label>
                                <div class="layui-input-inline">
                                    <input type="text" name="CS_Smtpport" placeholder="<?=L('tpl_ms_08')?>" value="<?=CS_Smtpport?>" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label"><?=L('tpl_ms_09')?></label>
                                <div class="layui-input-inline">
                                    <input type="text" name="CS_Smtpuser" placeholder="<?=L('tpl_ms_09')?>" value="<?=CS_Smtpuser?>" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label"><?=L('tpl_ms_10')?></label>
                                <div class="layui-input-inline">
                                    <input type="text" name="CS_Smtppass" placeholder="<?=L('tpl_ms_10')?>" value="<?=substr(CS_Smtppass,0,3)?>******" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label"><?=L('tpl_ms_11')?></label>
                                <div class="layui-input-inline">
                                    <input type="text" name="CS_Smtpmail" placeholder="<?=L('tpl_ms_12')?>" value="<?=CS_Smtpmail?>" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label"><?=L('tpl_ms_13')?></label>
                                <div class="layui-input-inline">
                                    <input type="text" name="CS_Smtpname" placeholder="<?=L('tpl_ms_14')?>" value="<?=CS_Smtpname?>" class="layui-input">
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-input-block noborder">
                                <button style="margin-left: 20%;" class="layui-btn" lay-submit lay-filter="setting"><?=L('tpl_ms_15')?></button>
                                <button type="reset" class="layui-btn layui-btn-primary"><?=L('tpl_ms_16')?></button>
                            </div>
                        </div>
                    </div>
                </fieldset>
            </form>
        </div>
    </div>
            
<script type="text/javascript">
    cscms.init();
</script>
</body>
</html>
